package com.qiqi.web;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class ProdcutController {
	/**
	 * 根据产品ID获得产品信息页面
	 * @param id
	 * @return
	 */
	@RequestMapping("/product/{id}")
	public String getProduct(@PathVariable long id,ModelMap map){
		map.put("id", id);
		return "product/detail";
	}
}
